{% extends "base_generic.html" %}

{% block content %}
    <h1>Author: {{ author.last_name }}, {{ author.first_name }}</h1>
    <p>Born: {{ author.date_of_birth }}</p>
    <p>Died: {{ author.date_of_death }}</p>
    <h2>Books</h2>
    <ul>
    {% for book in author.book_set.all %}
        <li><a href="{{ book.get_absolute_url }}">{{ book.title }} ({{ book.subtitle }})</a></li>
        <p>{{ book.summary }}</p>
    {% endfor %}
    </ul>
{% endblock %}